/* init */

.dd-clear {
  zoom: 1;
}

.dd-clear:after {
  content: '';
  display: block;
  clear: both;
}

.dd-fl {
  float: left;
}

.dd-fr {
  float: right;
}

.dd-db {
  display: block;
}

.dd-row {
  display: flex;
  flex-direction: row;
}

.dd-column {
  display: flex;
  flex-direction: column;
}

/*固定到底部  */

.dd-fixed-bottom {
  position: fixed;
  bottom: 0;
  width: 100%
}

/*固定到顶部  */

.dd-fixed-top {
  position: fixed;
  top: 0;
  width: 100%
}

/* flex水平居中同时垂直居中 */

.dd-center {
  justify-content: center;
  align-items: center;
}

.dd-text-center {
  text-align: center;
}

/* 水平居中 */

.dd-h-center {
  justify-content: center;
  text-align: center;
}

/* 垂直居中 */

.dd-v-center {
  align-items: center;
}

/* 一个内部元素 水平靠右边 */

.dd-h-right {
  justify-content: flex-end;
}

/* 两个内部元素 靠在两边 */

.dd-h-2side {
  justify-content: space-between;
}

/* 另一边宽度固定后， 这边宽度自适应  */

.dd-flex1 {
  flex: 1;
}

/* 块元素化 */

.dd-db {
  display: block;
}

/* input 样式 */

.dd-input {
  min-width: 200pt;
  min-height: 28pt;
}

/* 省略多余的文字 */

.dd-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 全屏显示 */

.full-screen {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.3);
}

/* 常用 margin padding  */

.dd-mgt10 {
  margin-top: 10pt;
}

.dd-mgt20 {
  margin-top: 20pt;
}

.dd-mgb10 {
  margin-bottom: 10pt;
}

.dd-mgb20 {
  margin-bottom: 20pt;
}

/*  模态框  */

.dd-model {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
}

/* 块 小程序内部的默认分块  */

.kuai {
  box-sizing: border-box;
  box-shadow: 0 0 5pt #ccc;
  width: 90%;
  margin: 0 5%;
  padding: 8pt;
}

/* dd-btn 按钮样式 注意：root 在小程序里还用不了 */

:root {
  --btn-padding: 3pt 13pt;
}

.dd-btn-red {
  outline: none;
  border: 1px solid transparent;
  cursor: pointer;
  background-color: #c82333;
  color: white;
  font-size: 12pt;
  font-weight: 400;
  text-align: center;
  padding: 3pt 13pt;
}

.dd-btn-red:hover {
  background-color: #b11f2d;
}

.dd-btn-red-c {
  background-color: #c82333;
  color: white;
  border: 1pt solid transparent;
  width: 200pt;
  height: 26pt;
  border-radius: 20pt;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  align-self: center;
  font-size: 12pt;
  box-shadow: 0 0 5pt #ccc;
}

.dd-btn-ccc {
  outline: none;
  border: 1px solid transparent;
  cursor: pointer;
  background-color: #ccc;
  color: #000;
  font-size: 12pt;
  font-weight: 400;
  text-align: center;
  padding: var(--btn-padding);
}

.dd-btn-ccc:hover {
  background-color: rgb(161, 160, 160);
}

.dd-btn-yellow {
  outline: none;
  border: 1px solid transparent;
  cursor: pointer;
  background-color: rgb(228, 228, 44);
  color: #000000;
  font-size: 12pt;
  font-weight: 400;
  text-align: center;
  padding: 3pt 13pt;
}

.dd-btn-yellow:hover {
  background-color: #97a834;
}

/* 圆角btn */

.dd-btn-yellow-c {
  border: 1pt solid transparent;
  width: 200pt;
  height: 26pt;
  background: #e2ca2e;
  border-radius: 20pt;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  align-self: center;
  font-size: 12pt;
  box-shadow: 0 0 5pt #ccc;
}

.dd-btn-default {
  border: 1pt solid #000;
  width: 200pt;
  height: 26pt;
  background: transparent;
  border-radius: 20pt;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  align-self: center;
  font-size: 12pt;
  box-shadow: 0 0 5pt #ccc;
}

/* color */

/* 常用颜色 */

.dd-c_o {
  color: orange;
}

.dd-c_c {
  color: #ccc;
}

/* end init */
